/**
 * @author wcj
 * @Date 2021/6/3 15:30
 * @Version 1.0
 */
public class UnActiveQuoteTest1 {

    public static void main(String[] args) {
        System.out.println(SubClass.size);
    }
}

/**
 * 被动引用即：通过子类访问父类的静态变量，不会触发子类的初始化操作
 */
class SuperClass {
    static {
        System.out.println("SuperClass init");
    }

    public static int size = 10;
}

class SubClass extends SuperClass {

    static {
        System.out.println("SubClass init");
    }
}
